package com.hhw.service;

import java.util.List;

import com.hhw.dao.UserDao;
import com.hhw.entity.User;

public class UserService {
	//实例化数据访问层
		private UserDao userdao=new UserDao();
		User r=new User();
		
		//验证用户查询方法
		public List<User> findUser(){
			return userdao.findUser();
		}
		//判断用户是否存在	
		public boolean isExist(User r){
			return userdao.isExist(r);
		}
		
		//验证用户查询方法根据<name>
		public List<User> findAllUser(String user_name){
			return userdao.findAllUser(user_name);
		}
	
	

}
